{
    "variables": {
      "project_id":"h2o-gce",
      "account_file":"<NAME OF GCP CREDENTIALS JSON FILE>",
      "llm_studio_version": "<LLM STUDIO VERSION>"
   },
    "builders": [
      {
        "type": "googlecompute",
        "project_id": "{{user `project_id`}}",
        "account_file": "{{user `account_file`}}",
        "machine_type": "e2-standard-4",
        "source_image_family": "ubuntu-2004-lts",
        "zone": "us-west1-b",
        "image_description": "h2o-llm-studio using packer",
        "image_name": "h2oai-llm-studio-{{user `llm_studio_version`}}",
        "disk_size": 512,
        "disk_type": "pd-ssd",
        "ssh_username": "ubuntu"
      }
    ],
    "post-processors": [
      {
        "type": "manifest",
        "output": "gcp-image-info.json",
        "strip_path": true,
        "custom_data": {
          "base_image": "GCP Ubuntu 20.04",
          "llm_studio_version": "{{user `llm_studio_version`}}"
        }
      }
    ],
    "provisioners": [
    
        {
         "type": "shell",
         "environment_vars": ["VERSION={{user `BRANCH_VERSION`}}"],
         "script": "./install_llm_studio_ubuntu2004.sh"
       }
    ]
  }